package study.day5.t7;

public class Dog extends Pet {
    public Dog() {

    }

    public Dog(String name, int power){
        this.name = name;
        this.power = power;
    }

    //狗狗看门吧
    public void seeDoor(){
        System.out.println("狗狗正在看门");
    }

    @Override
    public void eat(int num) {
        power+=num;
        System.out.println("狗狗"+this.name+"能量增加了"+num+"，最终能量为："+this.power);
    }
}
